<admintpl file="header"/>
<body class="J_scroll_fixed">
<div class="wrap jj">
  <ul class="nav nav-tabs">
     <li class="active"><a href="{:U('collectadmin/answer')}">回复数量</a></li>
  </ul>
  <div class="common-form">
    <div id="container" style="width: 800px; height: 400px; margin: 0 auto"></div>
  </div>
</div>
<script type="text/javascript" src="__ROOT__/statics/js/jquery142.js"></script>
<js href="__ROOT__/statics/highcharts/highcharts.js" />
<js href="__ROOT__/statics/highcharts/modules/exporting.js" />
<script type="text/javascript">
var chart;
$(document).ready(function() {
	chart = new Highcharts.Chart({
		chart: {
            renderTo: 'container',
            type: 'line'
        },
        title: {
            text: '用户回复数量统计'
        },
        subtitle: {
    		text: '最近一周统计',
    		align: 'center',
        },
        xAxis: {
            categories: ['1','2','3','4','5','6','7']
        },
        yAxis: {
            min: 0,
            title: {
                text: '人/次'
            }
        },
        legend: {
            backgroundColor: '#FFFFFF',
            reversed: true
        },
        tooltip: {
            formatter: function() {
                return ''+
                    this.series.name +': '+ this.y;
            }
        },
        series: [{
            name: '用户回复数量',
            data: [<php> echo join(',',$rst[0]);</php>]
        }],
        credits: {
    		enabled: false,
        }
	});
});
</script>
</body>
</html>